package com.xiaoxiang.mall.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Builder;
import lombok.Data;

/**
 * (ShoppingCart)表实体类
 *
 * @author haha
 * @since 2022-03-29 13:23:07
 */
@Data
@Builder
public class ShoppingCart extends Model<ShoppingCart> {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 商品id
     */
    private Long goodsId;

    /**
     * 数量
     */
    private Long num;
}
